package view {
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.text.TextField;
	import model.ModelManager;
	import model.Post;
	import view.graph.GraphManager;
	import view.graph.GraphStates;
	import view.gui.GuiManager;
	/**
	 * ...
	 * @author Anthony
	 */	 
	public class ViewManager
	{
		//------------------------------- statics ------------------------------\\
		private static var _self : ViewManager = new ViewManager();
		
		//------------------------------ variables -----------------------------\\
		private var _graphic		: Sprite;
		
		//------------------------------ accessors -----------------------------\\
		public static function get self() 	: ViewManager	{ return _self; }
		public function get graphic() 		: Sprite 		{ return _graphic; }
		
		//-------------------------- public functions --------------------------\\
		public function ViewManager()
		{
			if (_self)
				throw new Error("ViewManager can only be accessed through ViewManager.self");
			else
			{				
				_graphic = new Sprite();	
				_graphic.addChild(GraphManager.self.graphic);			
				_graphic.addChild(GuiManager.self.graphic);
			}
		}
		
		public function init() : void
		{
			GraphStates.self.init();
			GraphManager.self.init();
			GuiManager.self.init();
		}
		
		//------------------------- private functions --------------------------\\
		
	}

}